package 运输配货系统;

public class Car {

	private static int count=0;//代表总共多少个车辆;
	int []carNumber=new int[5];
	boolean bool=false;//该车是否占用（运输）;
	private static int carNumber1=100000;//代表车辆号码;上限
	private static int []carNumber2=new int[5];
	public Car() {
		
		count++;
		carNumber1++;
		int x=10000;
		for(int i=0;i<5;i++) {
		carNumber[i]=(carNumber1/x)%10;
		carNumber2[i]=(carNumber1/x)%10;
		x=x/10;

		
		
	}
	}
	
		public static String toString(int [] a) {
			String s="";
			
			for(int i=0;i<a.length;i++)
				s=s+a[i];
			return s;
		}

	public static int  getCount() {
		return count;
	}
	public static String getCarNumber() {
		return toString(carNumber2);
	}
}